<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Account\Controller\Account' => 'Account\Controller\AccountController',
            'Account\Controller\Loan' => 'Account\Controller\LoanController',
            'Account\Controller\Access' => 'Account\Controller\AccessController'
        )
    ),
    // The following section is new and should be added to your file
    'router' => array(
        'routes' => array(
            'account' => array(
                'type' => 'Literal',
                'options' => array(
                    'route' => '/account',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'Account\Controller',
                        'controller' => 'Account',
                        'action' => 'index',
                    )
                ),
                'may_terminate' => true,
                'child_routes' => array(
                    'default' => array(
                        'type' => 'Segment',
                        'options' => array(
                            'route' => '/[:controller[/:action][/id/:id][/:param][/:param1]]',
                            'constraints' => array(
                                'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                                'id' => '[a-zA-Z0-9_-]*',
                                'param' => '[a-zA-Z0-9]*',
                                'param1' => '[a-zA-Z0-9]*',
                            ),
                            'defaults' => array(),
                        ),
                    ),
                ),
            )
        )
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'account' => __DIR__ . '/../view',
        ),
    ),
);